
// <copyright file="ScriptError.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The script error.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Windows.Forms
{
    using System;

    /// <summary>
    /// The script error.
    /// </summary>
    public class ScriptError
    {
        #region Constructors and Finalizers

        /// <summary>
        /// Initializes a new instance of the <see cref="ScriptError"/> class.
        /// </summary>
        /// <param name="url">
        /// The url.
        /// </param>
        /// <param name="description">
        /// The description.
        /// </param>
        /// <param name="lineNumber">
        /// The line number.
        /// </param>
        public ScriptError(Uri url, string description, int lineNumber)
        {
            this.Url = url;
            this.Description = description;
            this.LineNumber = lineNumber;
        }

        #endregion Constructors and Finalizers

        #region Public Properties

        /// <summary>
        /// Gets the description.
        /// </summary>
        public string Description { get; private set; }

        /// <summary>
        /// Gets the line number.
        /// </summary>
        public int LineNumber { get; private set; }

        /// <summary>
        /// Gets the url.
        /// </summary>
        public Uri Url { get; private set; }

        #endregion Public Properties
    }
}
